package com.pushtime.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Properties specific to Hdfsutil.
 * <p>
 * Properties are configured in the application.yml file.
 * See {@link io.github.jhipster.config.JHipsterProperties} for a good example.
 */
@ConfigurationProperties(prefix = "application", ignoreUnknownFields = false)
public class ApplicationProperties {

    private final Webhdfs webhdfs = new ApplicationProperties.Webhdfs();

    public Webhdfs getWebhdfs() {
        return webhdfs;
    }

    public static class Webhdfs {
        private String url;
        private String path;
        private Integer blockSize;
        private Boolean autoMkdir;

        public Boolean getAutoMkdir() {
            return autoMkdir;
        }

        public void setAutoMkdir(Boolean autoMkdir) {
            this.autoMkdir = autoMkdir;
        }

        public Integer getBlockSize() {
            return blockSize;
        }

        public void setBlockSize(Integer blockSize) {
            this.blockSize = blockSize;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }
    }
}
